<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
//Person.prototype.prototype = Object.prototype.constorctor == Object
    
Person.prototype.name = '蜗牛'
function Person(){
//var this = {
//   __proto__:Person.prototype
//}
//return this
    }
    
    var person = new Person()
    //console.log(person)
    //console.log(Person.prototype)//{constructor: ƒ}
//console.log(person.__proto__.name);//蜗牛  person.__proto__ = Person.prototype

var obj = {
    name:'wn'
}
//person.__proto__ = obj
//console.log(person.name)//wn 修改person的原型，就不需要去Person原型链上找了


// Person.prototype = {
//     name:'帅帅'
// }
Person.prototype.name = '帅帅'
console.log(person.name)//蜗牛 对象实例化后是独立的
</script>
</html>